import request from '@/utils/request'

// 查询生产报工记录列表
export function listWasteIssue(query) {
	return request({
		url: '/wasteIssue/list',
		method: 'get',  
		params: query
	})
}

// 新增退料申请
export function addWasteIssueTask(data) {
	return request({
		url: '/wasteIssue',
		method: 'post',
		data: data
	})
}

// 查询退料详情
export function getWasteIssueDetail(query) {
	return request({
		url: '/wasteIssue/getWasteIssueDetail',
		method: 'get',  
		params: query
	})
}

// 查询退料详情列表
export function getWasteIssueDetailList(query) {
	return request({
		url: '/wasteIssue/getWasteIssueDetailList',
		method: 'get',  
		params: query
	})
}